package org.cart.entity;

public class Order {
	
	private Long id;	//id

	private String orderSnId;	//订单标识

	private Float priceSum;	//总价

	private Long expressId;	//快递单编号

	private Integer addressId;	//收货地址编号

	private Integer userId;	//用户【编号】

	private Long createTime;	//创建时间

	private Long deliveryTime;	//发货时间

	private Long payTime;	//支付时间

	private Long overTime;	//完结时间

	private Short orderStatus;	//-1：取消订单；0 未支付，1已支付，2，发货中，3已发货，4已收货，5退货审核中，6审核失败，7审核成功，8退款中，9退款成功, 

	private Byte commentStatus;	//评价状态 0未评价 1已评价

	private Integer wareId;	//仓库编号

	private Integer payType;	//支付类型编号

	private String remarks;	//订单备注

	private Byte status;	//0正常1删除

	private Byte translate;	//1需要发票，0不需要

	private Float shippingMonery;	//运费【这样 就不用 重复计算两遍】
	
	private Integer expId;	//快递表编号

	private Short platform;	//平台：0代表pc，1代表app

	private Byte orderType;	//订单类型0普通订单1货到付款

	private Integer storeId;	//店铺【编号】

	private Float couponDeductible;	//优惠券抵扣金额

	public String getOrderSnId() {
		return orderSnId;
	}

	public void setOrderSnId(String orderSnId) {
		this.orderSnId = orderSnId;
	}

	public Float getPriceSum() {
		return priceSum;
	}

	public void setPriceSum(Float priceSum) {
		this.priceSum = priceSum;
	}

	public Long getExpressId() {
		return expressId;
	}

	public void setExpressId(Long expressId) {
		this.expressId = expressId;
	}

	public Integer getAddressId() {
		return addressId;
	}

	public void setAddressId(Integer addressId) {
		this.addressId = addressId;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public Long getDeliveryTime() {
		return deliveryTime;
	}

	public void setDeliveryTime(Long deliveryTime) {
		this.deliveryTime = deliveryTime;
	}

	public Long getPayTime() {
		return payTime;
	}

	public void setPayTime(Long payTime) {
		this.payTime = payTime;
	}

	public Long getOverTime() {
		return overTime;
	}

	public void setOverTime(Long overTime) {
		this.overTime = overTime;
	}

	public Short getOrderStatus() {
		return orderStatus;
	}

	public void setOrderStatus(Short orderStatus) {
		this.orderStatus = orderStatus;
	}

	public Byte getCommentStatus() {
		return commentStatus;
	}

	public void setCommentStatus(Byte commentStatus) {
		this.commentStatus = commentStatus;
	}

	public Integer getWareId() {
		return wareId;
	}

	public void setWareId(Integer wareId) {
		this.wareId = wareId;
	}

	public Integer getPayType() {
		return payType;
	}

	public void setPayType(Integer payType) {
		this.payType = payType;
	}

	public String getRemarks() {
		return remarks;
	}

	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	public Byte getStatus() {
		return status;
	}

	public void setStatus(Byte status) {
		this.status = status;
	}

	public Byte getTranslate() {
		return translate;
	}

	public void setTranslate(Byte translate) {
		this.translate = translate;
	}

	public Float getShippingMonery() {
		return shippingMonery;
	}

	public void setShippingMonery(Float shippingMonery) {
		this.shippingMonery = shippingMonery;
	}

	public Integer getExpId() {
		return expId;
	}

	public void setExpId(Integer expId) {
		this.expId = expId;
	}

	public Short getPlatform() {
		return platform;
	}

	public void setPlatform(Short platform) {
		this.platform = platform;
	}

	public Byte getOrderType() {
		return orderType;
	}

	public void setOrderType(Byte orderType) {
		this.orderType = orderType;
	}

	public Integer getStoreId() {
		return storeId;
	}

	public void setStoreId(Integer storeId) {
		this.storeId = storeId;
	}

	public Float getCouponDeductible() {
		return couponDeductible;
	}

	public void setCouponDeductible(Float couponDeductible) {
		this.couponDeductible = couponDeductible;
	}

	
    
	@Override
    public String toString() {
        return String.format("order_id: %s, user_id: %s, status: %s", id, userId, status);
    }

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
}
